<template>
  <div class="coursedeatil_container">
    <!-- 头部 -->
    <div class="coursedeatil_header flex">
      <img
        src="https://imagev2.xmcdn.com/storages/72b6-audiofreehighqps/30/CE/GMCoOR8H3gffAAAQWAIAHhDF.png!magick=webp"
        alt=""
        class="coursedeatil_img"
      />
      <div class="coursedeatil_grade">V14</div>
      <div class="open_btn">打开</div>
    </div>

    <!-- 作者介绍 -->
    <div class="coursedeatil_intro flex_c">
      <div class="coursedeatil_intro_top flex">
        <img
          src="https://imagev2.xmcdn.com/storages/4b5e-audiofreehighqps/4D/C5/GKwRIJEH8g-IAAKZfwIGD6CF.jpg!op_type=5&device_type=ios&name=web_meduim&upload_type=cover"
          alt=""
          class="coursedeatil_intro_top_left"
        />

        <div class="coursedeatil_intro_top_right flex_c">
          <div class="coursedeatil_intro_top_right_title">NJ早安</div>
          <div class="coursedeatil_intro_top_right_intro">
            简介： 萌音剧社创办人 擅长古言现言小说 多声线演绎
            代表作：破亿作品《卦妃天下》《梦幻西游小说剧》；《掌欢》《娘子万安》《凤月无边》《契丹王妃》《盛宠之嫡女医妃》等。新书《我的未婚夫白狐大人》《陆少，你的仙妻下凡啦！》；喜马拉雅百大主播，十大年度最具价值主播；非熟不约音（档期已满望谅解）
          </div>
          <div class="coursedeatil_intro_top_right_accredited">
            喜马认证：有声书月度优质主播 2021年喜马直播周年二十强
          </div>
        </div>
      </div>
      <div class="coursedeatil_intro_middle">
        <div class="coursedeatil_intro_middle_attention flex">
          <div class="coursedeatil_intro_middle_attention_left">
            <span class="attention">关注</span
            ><span class="attention_count">127</span>
          </div>
          <div class="coursedeatil_intro_middle_attention_line"></div>
          <div class="coursedeatil_intro_middle_attention_right">
            <span class="fans">粉丝</span
            ><span class="fans_count">145.80万</span>
          </div>
        </div>
      </div>
      <div class="coursedeatil_intro_bottom flex">
        <van-icon name="plus" size="12" style="margin-right: 3px" />
        关注
      </div>
    </div>

    <!-- Tab滑动菜单 -->
    <div class="coursedeatil_tap">
      <van-tabs
        v-model:active="active"
        :color="'#f86442'"
        :title-inactive-color="'#999'"
      >
        <van-tab title="主页">
          <div class="coursedeatil_tap_home">
            <div class="coursedeatil_tap_info">
              <div class="coursedeatil_tap_title">TA的信息</div>
              <div class="coursedeatil_tap_constellation">天秤座</div>
              <div class="coursedeatil_tap_intro flex">
                <div style="margin-right: 8px">简介:</div>
                <div>制作好内容,享受好生活</div>
              </div>
              <div class="coursedeatil_tap_grade">
                <span style="margin-right: 6px">听众等级:</span>
                <i class="iconfont icon-Lv4"></i>
              </div>
            </div>
            <div class="coursedeatil_tap_circle">
              <div class="coursedeatil_tap_circle_title">TA的圈子</div>
              <div class="coursedeatil_tap_circle_img_intro flex">
                <img
                  src="https://imagev2.xmcdn.com/storages/f5d6-audiofreehighqps/2B/B9/GKwRIasHqVixAADP3AHw2qrE.jpg!op_type=5&device_type=ios&name=web_meduim&upload_type=cover"
                  alt=""
                  class="coursedeatil_tap_circle_img"
                />
                <div class="coursedeatil_tap_circle_intro flex_c">
                  <div class="coursedeatil_tap_circle_intro_title">
                    早安将和他的小伙伴
                  </div>
                  <div class="coursedeatil_tap_circle_intro_info">
                    <span>成员</span>
                    <span>2548</span>
                    <span>帖子</span>
                    <span>581</span>
                  </div>
                  <div class="coursedeatil_tap_circle_info_intro">
                    很幸运遇到了支持我的你们，感恩之余，唯有加倍的努力，做好每一本书，录好每一个角色，尽自己当下做好的状态全力以赴。upup～
                  </div>
                </div>
              </div>
            </div>

            <div class="coursedeatil_tap_dynamic_condition">
              <div class="coursedeatil_tap_dynamic_condition_title">
                动态(141)
              </div>
              <div class="coursedeatil_tap_dynamic_condition_img_info flex">
                <img
                  src="https://imagev2.xmcdn.com/storages/f5d6-audiofreehighqps/2B/B9/GKwRIasHqVixAADP3AHw2qrE.jpg!op_type=5&device_type=ios&name=web_meduim&upload_type=cover"
                  alt=""
                  class="coursedeatil_tap_dynamic_condition_img"
                />
                <div class="coursedeatil_tap_dynamic_condition_info flex_c">
                  <div class="coursedeatil_tap_dynamic_condition_info_title">
                    唬头帮精品有声
                  </div>
                  <div class="coursedeatil_tap_dynamic_condition_info_time">
                    6月13日
                  </div>
                </div>
              </div>
            </div>
            <div class="coursedeatil_tap_article">
              <div class="coursedeatil_tap_article_img_info_content">
                宝宝们本次年中爆更活动结束，非常感谢大家的支持，恭喜月票月榜前5名小伙伴获得唬头帮定制蓝牙耳机，稍后请私信提供收件地址，收齐后安排寄出哦
              </div>
              <div class="coursedeatil_tap_article_img_info_img_warp">
                <img
                  src="https://fdfs.xmcdn.com/storages/d1d1-audiofreehighqps/68/FC/GKwRIMAIQLc0AANLPwIfisqH.jpg"
                  alt=""
                  class="coursedeatil_tap_article_img_info_img"
                />
              </div>
              <div class="coursedeatil_tap_article_comment_like flex">
                <div class="coursedeatil_tap_article_comment_left flex">
                  <van-icon name="comment-o" size="16" color="#999" />
                  <div style="margin-left: 8px">评论(0)</div>
                </div>
                <div class="coursedeatil_tap_article_line"></div>
                <div class="coursedeatil_tap_article_comment_right flex">
                  <van-icon name="good-job-o" size="16" color="#999" />
                  <div style="margin-left: 8px">点赞(19)</div>
                </div>
              </div>
            </div>
            <div class="coursedeatil_tap_bottom">
              <img src="https://imagev2.xmcdn.com/storages/72b6-audiofreehighqps/30/CE/GMCoOR8H3gffAAAQWAIAHhDF.png!magick=webp" alt="" class="coursedeatil_tap_bottom_img_top">
              <img src="https://imagev2.xmcdn.com/storages/2165-audiofreehighqps/52/6D/GKwRIDoF6Ml9AAESnAEaI6xF.png!magick=webp" alt="" class="coursedeatil_tap_bottom_img_bottom">
            </div>
          </div>
        </van-tab>
        <van-tab title="专辑">
          <div class="coursedeatil_tap_collection">
            <div class="collection_list">
              <div class="collection_item flex">
                <img
                  src="https://imagev2.xmcdn.com/storages/f96c-audiofreehighqps/65/CA/CMCoOSEFB6oQAAH30QDfSmok.jpg!op_type=3&columns=144&rows=144"
                  alt=""
                  class="collection_item_left"
                />
                <div class="collection_item_right flex_c">
                  <div class="collection_item_right_title">
                    锦瑟年华丨豆丁&青翊丨都市言情多播
                  </div>
                  <div class="collection_item_right_intro">
                    我的十八岁生日就是我的噩梦...
                  </div>
                  <div class="collection_item_right_playCount flex">
                    <i class="iconfont icon-24gl-play"></i>
                    <span>887.28万</span>
                    <i class="iconfont icon-shengyin_o"></i>
                    <span>861</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="声音">
          <div class="coursedeatil_tap_voice">
            <div class="voice_list">
              <div class="voice_item flex">
                <img
                  src="https://imagev2.xmcdn.com/storages/f96c-audiofreehighqps/65/CA/CMCoOSEFB6oQAAH30QDfSmok.jpg!op_type=3&columns=144&rows=144"
                  alt=""
                  class="voice_item_left"
                />
                <div class="voice_item_right flex_c">
                  <div class="voice_item_right_title">
                    锦瑟年华丨豆丁&青翊丨都市言情多播
                  </div>
                  <div class="voice_item_right_playCount flex">
                    <i class="iconfont icon-24gl-play" style="font-size: 12px; margin-right: 6px;"></i>
                    <span style="margin-right: 16px">887.28万</span>
                    <van-icon name="comment-o" style="margin-right: 6px"/>
                    <span style="margin-right: 16px">35</span>
                    <van-icon name="clock-o" style="margin-right: 6px"/>
                    <div>11:06</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </van-tab>
        <van-tab title="订阅"></van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";

// 初始化数据
const active = ref(0);

// 功能函数

// 发请求获取数据
</script>

<style lang="less" scoped>
/deep/.van-tab--active{
    font-weight: bold;
    font-size: 20px;
}
.coursedeatil_container {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #f3f4f5;

  // 头部
  .coursedeatil_header {
    width: 100%;
    height: 58px;
    padding: 10px 8px;
    background-color: #4e4f51;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    position: relative;

    .coursedeatil_img {
      width: 102px;
      height: 36px;
    }

    .coursedeatil_grade {
      position: absolute;
      left: 68px;
      top: 143px;
      width: 30px;
      height: 20px;
      border-radius: 20px;
      background-color: #36d6fb;
      text-align: center;
      line-height: 20px;
      font-size: 13px;
      font-weight: 700;
      color: #fff;
    }
    .open_btn {
      width: 61px;
      line-height: 29px;
      color: #fff;
      font-size: 16px;
      text-align: center;
      height: 29px;
      background-color: #f86442;
      border-radius: 20px;
    }
  }

  // 作者介绍
  .coursedeatil_intro {
    width: 100%;
    height: 198px;
    background-color: #fff;

    .coursedeatil_intro_top {
      height: 85px;
      padding: 20px 15px 0 15px;
      .coursedeatil_intro_top_left {
        width: 85px;
        height: 85px;
        border-radius: 50%;
        margin-right: 22px;
      }
      .coursedeatil_intro_top_right {
        justify-content: space-evenly;
        .coursedeatil_intro_top_right_title {
          font-size: 18px;
          color: #333;
        }
        .coursedeatil_intro_top_right_intro {
          width: 238px;
          font-size: 12px;
          height: 26px;
          background-color: #ededed;
          text-align: center;
          line-height: 26px;
          color: #858585;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          padding: 0px 5px;
          box-sizing: border-box;
        }
        .coursedeatil_intro_top_right_accredited {
          width: 238px;
          font-size: 12px;
          color: #858585;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
      }
    }

    .coursedeatil_intro_middle {
      font-size: 13px;
      color: #333;
      width: 100%;
      height: 19px;
      margin: 22px 0px 16px;
      align-items: center;
      line-height: 19px;
      .coursedeatil_intro_middle_attention_left {
        flex: 1;
        .attention {
          color: #858585;
          margin-right: 20px;
          line-height: 19px;
          margin-left: 80px;
        }
      }
      .coursedeatil_intro_middle_attention_line {
        width: 1.6px;
        height: 19px;
        background-color: #a3a3ac;
      }
      .coursedeatil_intro_middle_attention_right {
        flex: 1;
        .fans {
          color: #858585;
          margin-right: 20px;
          line-height: 19px;
          margin-left: 36px;
        }
      }
    }
    .coursedeatil_intro_bottom {
      width: 99px;
      height: 30px;
      background-color: #f86442;
      text-align: center;
      color: #fff;
      font-size: 16px;
      align-items: center;
      justify-content: center;
      border-radius: 20px;
      margin: 0 auto;
    }
  }

  // Tab滑动菜单
  .coursedeatil_tab {
  }

  // Tab滑动菜单-主页
  .coursedeatil_tap_home {
    border-top: 1px solid #eee;
    width: 100%;
    .coursedeatil_tap_info {
      width: 100%;
      background-color: #fff;
      padding-left: 15px;
      padding-top: 23px;
      height: 132px;
      box-sizing: border-box;
      .coursedeatil_tap_title {
        font-size: 18px;
        padding-bottom: 12px;
      }
      .coursedeatil_tap_constellation {
        font-size: 13px;
        color: #666;
      }
      .coursedeatil_tap_intro {
        font-size: 14px;
        color: #999;
        margin-top: 12px;
        align-items: center;
      }
      .coursedeatil_tap_grade {
        font-size: 14px;
        color: #999;
        margin-top: 12px;
        margin-bottom: 12px;
      }
    }

    .coursedeatil_tap_circle {
      padding-left: 15px;
      box-sizing: border-box;
      padding-top: 30px;
      height: 125px;
      padding-right: 15px;
      background-color: #fff;
      .coursedeatil_tap_circle_title {
        font-size: 18px;
        color: #333;
        margin-bottom: 12px;
      }
      .coursedeatil_tap_circle_img_intro {
        .coursedeatil_tap_circle_img {
          width: 65px;
          height: 65px;
        }
        .coursedeatil_tap_circle_intro {
          justify-content: space-between;
          margin-left: 10px;
          padding-right: 15px;
          .coursedeatil_tap_circle_intro_title {
            font-size: 16px;
            color: #333;
          }
          .coursedeatil_tap_circle_intro_info {
            font-size: 12px;
            color: #999;
          }
          .coursedeatil_tap_circle_info_intro {
            width: 255px;
            font-size: 12px;
            color: #999;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
      }
    }

    .coursedeatil_tap_dynamic_condition {
      padding-top: 29px;
      padding-left: 15px;
      background-color: #fff;
      .coursedeatil_tap_dynamic_condition_title {
        font-size: 18px;
        margin-bottom: 17px;
      }
      .coursedeatil_tap_dynamic_condition_img_info {
        .coursedeatil_tap_dynamic_condition_img {
          width: 40px;
          height: 40px;
        }
        .coursedeatil_tap_dynamic_condition_info {
          height: 40px;
          justify-content: space-around;
          margin-left: 15px;

          .coursedeatil_tap_dynamic_condition_info_title {
            font-size: 14px;
          }
          .coursedeatil_tap_dynamic_condition_info_time {
            font-size: 12px;
            color: #999;
          }
        }
      }
    }
    .coursedeatil_tap_article {
      width: 100%;
      background-color: #fff;
      padding-left: 15px;
      margin-bottom: 10px;
      padding-top: 16px;
      padding-bottom: 20px;
      .coursedeatil_tap_article_img_info_content {
        font-size: 14px;
        color: #666;
        width: 340px;
        line-height: 1.6em;
      }
      .coursedeatil_tap_article_img_info_img {
        width: 240px;
        height: 160px;
        margin: 10px 4px 0 0;
      }
      .coursedeatil_tap_article_comment_like {
        width: 100%;
        height: 20px;
        margin-top: 20px;
        align-items: center;
        margin-right: 10px;
        .coursedeatil_tap_article_comment_left {
          width: 176px;
          font-size: 12px;
          color: #999;
          justify-content: center;
        }
        .coursedeatil_tap_article_line {
          width: 1px;
          height: 20px;
          background-color: #eee;
        }
        .coursedeatil_tap_article_comment_right {
          width: 176px;
          font-size: 12px;
          color: #999;
          justify-content: center;
        }
      }
    }
    .coursedeatil_tap_bottom {
      position: relative;
      .coursedeatil_tap_bottom_img_top {
        position: absolute;
        left: 37%;
        bottom: 110px;
        width: 102px;
        height: 36px;
      }
      .coursedeatil_tap_bottom_img_bottom {
        width: 100%;
        height: 180px;
      }
    }
  }

  // Tab滑动菜单-专辑
  .coursedeatil_tap_collection {
    border-top: 1px solid #eee;
    width: 100%;
    .collection_list {
      padding-left: 15px;
      width: 100%;
      background-color: #fff;
      .collection_item {
        padding: 15px 0;
        height: 110px;
        box-sizing: border-box;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        .collection_item_left {
          width: 70px;
          height: 70px;
          border-radius: 4px;
          margin-right: 15px;
        }
        .collection_item_right {
          width: 265px;
          height: 70px;
          justify-content: space-around;
          .collection_item_right_title {
            font-size: 16px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .collection_item_right_intro {
            font-size: 13px;
            color: #999;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
          }
          .collection_item_right_playCount {
            font-size: 12px;
            height: 20px;
            color: #999;
            align-items: center;
          }
        }
      }
    }
  }

  // Tab滑动菜单-声音
  .coursedeatil_tap_voice {
    border-top: 1px solid #eee;
    width: 100%;
    .voice_list {
      padding-left: 15px;
      width: 100%;
      background-color: #fff;
      .voice_item {
        padding: 15px 0;
        height: 74px;
        box-sizing: border-box;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        .voice_item_left {
          position: relative;
          width: 44px;
          height: 44px;
          border-radius: 50%;     
          margin-right: 15px;
         
        }
        &::before {
            content: "\e60e";
            font-family: "iconfont";
            position: absolute;
            color: #fff;
            top: 75px;
            left: 30px;
            z-index: 2;
            font-size: 16px;
        }
        &::after {
            content: "";
            position: absolute;
            border-radius: 50%;  
            top: 60px;
            left: 15px;
            z-index: 1;
            width: 44px;
            height: 44px;
            opacity: 0.5;
            background-color: #333;
          }
        .voice_item_right {
          width: 265px;
          height: 44px;
          justify-content: space-between;
          .voice_item_right_title {
            font-size: 16px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .voice_item_right_playCount {
            font-size: 12px;
            height: 20px;
            color: #999;
            line-height: 20px;
            align-items: center;
          }
        }
      }
    }
  }
}
</style>
